package com.our.sys.project1.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

@Entity
@Table(name = "T_StockIn")
public class StockIn implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 8796195904122054802L;
    @ViewField
    private Long id;
    @ViewField(header = "仓库", width = 100, align = "left")
    private String store;
    @ViewField(header = "入库单号", width = 100, align = "left")
    private String stockNo;
    @ViewField(header = "发票号", width = 100, align = "left")
    private String number;
    @ViewField(header = "发票时间", width = 100, align = "left")
    private String time;
    @ViewField(header = "入库类型", width = 100, align = "left")
    private String type;
    @ViewField(header = "供应商", width = 100, align = "left")
    private String supplier;
    @ViewField(header = "入库时间", width = 100, align = "left")
    private String inTime;
    @ViewField(header = "总金额", width = 100, align = "left")
    private BigDecimal allMoney;
    @ViewField(header = "是否记账", width = 100, align = "left")
    private String isAccount;
    @ViewField(header = "记账时间", width = 100, align = "left")
    private String accountTime;
    @ViewField(header = "记账人", width = 100, align = "left")
    private String accountName;
    @ViewField(header = "操作人", width = 100, align = "left")
    private String inWho;
    @ViewField
    private String state;//0.未验收，1.已验收，2.已红冲

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "T_StockIn")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public String getStockNo() {
        return stockNo;
    }

    public void setStockNo(String stockNo) {
        this.stockNo = stockNo;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getInTime() {
        return inTime;
    }

    public void setInTime(String inTime) {
        this.inTime = inTime;
    }

    public BigDecimal getAllMoney() {
        return allMoney;
    }

    public void setAllMoney(BigDecimal allMoney) {
        this.allMoney = allMoney;
    }

    public String getIsAccount() {
        return isAccount;
    }

    public void setIsAccount(String isAccount) {
        this.isAccount = isAccount;
    }

    public String getAccountTime() {
        return accountTime;
    }

    public void setAccountTime(String accountTime) {
        this.accountTime = accountTime;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getInWho() {
        return inWho;
    }

    public void setInWho(String inWho) {
        this.inWho = inWho;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
